<?php
	$db = mysql_connect('50.63.104.82', 'bisondubart', 'Ete_2012') or die('could not connect: ' . mysql_error());
	mysql_select_db('bisondubart') or die ('could no connect to DB');

	$query = "SELECT * FROM table_ubart ORDER by score DESC LIMIT 10";
	$result = mysql_query($query) or die ('Query Failed' . mysql_error());
	
	$num_results = mysql_num_rows($result);
	for($i = 0; i < $num_results; $i++)
	{
		$row = mysql_fetch_array($result);
		echo $i+1 . ".\t" . $row['name'] . " " . $row['level'] . "\t" . $row['score'] . "\n"; 
	}
?>